package com.bj58.groupbuy.action.service;

import java.util.List;
import java.util.TreeMap;

import com.bj58.groupbuy.action.model.Menu;
import com.bj58.groupbuy.service.IBaseService;

public interface MenuService extends IBaseService<Menu>{
	
	/**根据权限点查询权限列表
	 * @param functions
	 * @return
	 * @throws Exception
	 */
	public List<Menu>  getMenuListByFunctions(String  functions) throws Exception;
	
	/**查出所有正常显示（isshow = 1) 菜单
	 * @return
	 * @throws Exception
	 */
	public List<Menu>  getAllMenu() throws Exception;
	
	
	/**以cate1-cate2 为key将所有可展现节点分组
	 * @return
	 * @throws Exception
	 */
	public TreeMap<String,List<Menu>>  getMenuMap() throws Exception;
	
	
	/**通过URL查找menu
	 * @param url
	 * @return
	 * @throws Exception
	 */
	public Menu findByURL(String url) throws Exception;
	
	
	/**根据一级分类获取下面的菜单列表
	 * @param cate1
	 * @return
	 * @throws Exception
	 */
	public List<Menu>  getListByCate1(String cate1,String fun)throws Exception;
	
}
